import { ref } from 'vue'
import PageContent from '@/components/page-content'
//hooks 逻辑抽取供其他地方调用--调用请求查询
export function usePageSearch() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  const handleResetClick = () => {
    pageContentRef.value?.getPageData()
  }
  const handleQueryClick = (queryInfo: any) => {
    pageContentRef.value?.getPageData(queryInfo)
  }
  //元组
  return [pageContentRef, handleResetClick, handleQueryClick]
}
